import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName Demo03
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 17:38
 * @ModifyDate 2022/8/14 17:38
 * @Version 1.0
 */
public class Demo03 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("张无忌");
        list.add("周芷若");
        list.add("赵敏");
        list.add("张三");
        list.add("张三丰");

        List<String> list1 = new ArrayList<>();
        list.stream().filter(s -> s.startsWith("张"))
                .filter(s -> s.length() == 3)
                .forEach(s -> System.out.println(s));
    }
}
